package Class::Scaffold::Environment_TEST;

use warnings;
use strict;
use Error::Hierarchy::Test 'throws2_ok';
use Test::More;


our $VERSION = '0.03';


use base 'Class::Scaffold::Test';


use constant PLAN => 1;


sub run {
    my $self = shift;
    $self->SUPER::run(@_);

    throws2_ok { $self->delegate->make_obj(foobar => 'abc') }
        'Error::Hierarchy::Internal::CustomMessage',
        qr/Factory type 'foobar' is not defined/,
        'trying to make an object of an unknown object type';

}


1;


__END__

{% USE p = PodGenerated %}

=head1 NAME

{% p.package %} - large-scale OOP application support

=head1 SYNOPSIS

    {% p.package %}->new;

=head1 DESCRIPTION

=head1 METHODS

=over 4

{% p.write_methods %}

=back

{% p.write_inheritance %}

{% PROCESS standard_pod %}

=cut

